<!DOCTYPE html>
<html data-dpr="1" style="font-size: 39px;">

<head>
    {include file="common/meta2" /}
    {include file="common/meta3" /}

    <link rel="stylesheet" type="text/css" href="/assets/css2/diqu.css">
    <script src="/assets/js2/picker.min.js"></script>
    <script src="/assets/js2/city.js"></script>
</head>

<body class="jui_bg_grey" style="font-size: 12px;">
    <!-- 头部 -->
    <div class="jui_top_bar">
        <a class="jui_top_left" href="/index/user/index"><img src="/assets/img2/back_111.png"></a>
        <div class="jui_top_middle">编辑资料</div>
    </div>
    <form id="setform" name="setform">
        <div class="jui_bg_fff">
            <div class="jui_public_list">
                <p>姓名</p>
                <input class="jui_flex1 jui_text_right" type="text" placeholder="您的姓名" value="嘢子" name="m_name"
                    id="m_name">
            </div>
            <div class="jui_public_list jui_flex_justify_between">
                <p>性别</p>
                <div class="jui_flex_row_center">
                    <label class="jui_flex_row_center jui_pad_r20">
                        <input class="jui_form_radio" type="radio" value="0" name="m_gender" checked="checked">
                        <p class="jui_pad_l5">保密</p>
                    </label>
                    <label class="jui_flex_row_center jui_pad_r20">
                        <input class="jui_form_radio" type="radio" value="1" name="m_gender">
                        <p class="jui_pad_l5">男</p>
                    </label>
                    <label class="jui_flex_row_center">
                        <input class="jui_form_radio" type="radio" value="2" name="m_gender">
                        <p class="jui_pad_l5">女</p>
                    </label>
                </div>
            </div>
            <div class="jui_public_list" style="display:none">
                <p>行业</p>
                <select class="jui_flex1 jui_pad_r12" dir="rtl" name="m_hang">
                    <option value="1" selected="selected">食品饮料</option>
                    <option value="2">日用百货</option>
                    <option value="3">美妆个护</option>
                    <option value="4">手机数码</option>
                    <option value="5">服装鞋包</option>
                    <option value="6">母婴用品</option>
                    <option value="7">户外用品</option>
                    <option value="8">其他分类</option>
                </select>
                <img class="jui_arrow_rimg" src="/assets/img2/jt_right.png">
            </div>
            <div class="jui_public_list">
                <p>地区</p>
                <a id="sel_city" class="jui_flex1 jui_pad_r12 jui_text_right">
                    北京 东城区 </a> <img class="jui_arrow_rimg" src="/assets/img2/jt_right.png">
            </div>
            <div class="jui_public_list">
                <p>微信</p>
                <input class="jui_flex1 jui_text_right" type="text" value="ye329942007" name="m_weixin" id="m_weixin">
            </div>
            <div class="jui_public_list2 jui_flex_justify_between">
                <p>二维码</p>
                <a href="/index/user/qrcode" class="jui_block"><img class="set_ewm"
                        src="/assets/img2/202411141731587986722.jpg"></a>
            </div>
            <!--<div class="jui_public_list">
          <p>小视频</p>
          <input class="jui_flex1 jui_text_right" type="text" value="" name="m_svideo" id="m_svideo">
      </div>-->
            <div class="jui_public_list">
                <p>收货地址</p>
                <input class="jui_flex1 jui_text_right" type="text" name="m_blogs" id="m_blogs">
            </div>
        </div>
        <!--<div class="jui_h12"></div>
  <textarea class="set_textarea" name="m_goods" id="m_goods" placeholder="我的商品  请用  |  中划线隔开"></textarea>-->
        <div class="jui_h12"></div>
        <textarea class="set_textarea" name="m_infos" id="m_infos" placeholder="个人说明 60字以内">无</textarea>
        <div class="jui_public_btn">
            <input type="button" value="保存">
        </div>
    </form>
    <!-- 主体end -->
    <script src="/assets/js2/cityjs.js"></script>
    <div class="picker">
        <div class="picker-mask mask-hook"></div>
        <div class="picker-panel panel-hook">
            <div class="picker-choose choose-hook">
                <span class="cancel cancel-hook">取消</span>
                <span class="confirm confirm-hook">确定</span>
                <h1 class="picker-title">地址选择</h1>
            </div>
            <div class="picker-content">
                <div class="mask-top border-1px"></div>
                <div class="mask-bottom border-1px"></div>
                <div class="wheel-wrapper wheel-wrapper-hook">

                    <div class="wheel wheel-hook">
                        <ul class="wheel-scroll wheel-scroll-hook">

                            <li class="wheel-item" data-val="0">北京</li>

                            <li class="wheel-item" data-val="1">广东</li>

                            <li class="wheel-item" data-val="2">上海</li>

                            <li class="wheel-item" data-val="3">天津</li>

                            <li class="wheel-item" data-val="4">重庆</li>

                            <li class="wheel-item" data-val="5">辽宁</li>

                            <li class="wheel-item" data-val="6">江苏</li>

                            <li class="wheel-item" data-val="7">湖北</li>

                            <li class="wheel-item" data-val="8">四川</li>

                            <li class="wheel-item" data-val="9">陕西</li>

                            <li class="wheel-item" data-val="10">河北</li>

                            <li class="wheel-item" data-val="11">山西</li>

                            <li class="wheel-item" data-val="12">河南</li>

                            <li class="wheel-item" data-val="13">吉林</li>

                            <li class="wheel-item" data-val="14">黑龙江</li>

                            <li class="wheel-item" data-val="15">内蒙古</li>

                            <li class="wheel-item" data-val="16">山东</li>

                            <li class="wheel-item" data-val="17">安徽</li>

                            <li class="wheel-item" data-val="18">浙江</li>

                            <li class="wheel-item" data-val="19">福建</li>

                            <li class="wheel-item" data-val="20">湖南</li>

                            <li class="wheel-item" data-val="21">广西</li>

                            <li class="wheel-item" data-val="22">江西</li>

                            <li class="wheel-item" data-val="23">贵州</li>

                            <li class="wheel-item" data-val="24">云南</li>

                            <li class="wheel-item" data-val="25">西藏</li>

                            <li class="wheel-item" data-val="26">海南</li>

                            <li class="wheel-item" data-val="27">甘肃</li>

                            <li class="wheel-item" data-val="28">宁夏</li>

                            <li class="wheel-item" data-val="29">青海</li>

                            <li class="wheel-item" data-val="30">新疆</li>

                            <li class="wheel-item" data-val="31">香港</li>

                            <li class="wheel-item" data-val="32">澳门</li>

                            <li class="wheel-item" data-val="33">台湾</li>

                            <li class="wheel-item" data-val="34">海外</li>

                            <li class="wheel-item" data-val="35">其他</li>

                        </ul>
                    </div>

                    <div class="wheel wheel-hook">
                        <ul class="wheel-scroll wheel-scroll-hook">

                            <li class="wheel-item" data-val="0">东城区</li>

                            <li class="wheel-item" data-val="1">西城区</li>

                            <li class="wheel-item" data-val="2">崇文区</li>

                            <li class="wheel-item" data-val="3">宣武区</li>

                            <li class="wheel-item" data-val="4">朝阳区</li>

                            <li class="wheel-item" data-val="5">海淀区</li>

                            <li class="wheel-item" data-val="6">丰台区</li>

                            <li class="wheel-item" data-val="7">石景山区</li>

                            <li class="wheel-item" data-val="8">房山区</li>

                            <li class="wheel-item" data-val="9">通州区</li>

                            <li class="wheel-item" data-val="10">顺义区</li>

                            <li class="wheel-item" data-val="11">昌平区</li>

                            <li class="wheel-item" data-val="12">大兴区</li>

                            <li class="wheel-item" data-val="13">怀柔区</li>

                            <li class="wheel-item" data-val="14">平谷区</li>

                            <li class="wheel-item" data-val="15">门头沟区</li>

                            <li class="wheel-item" data-val="16">密云县</li>

                            <li class="wheel-item" data-val="17">延庆县</li>

                            <li class="wheel-item" data-val="18">其他</li>

                        </ul>
                    </div>

                </div>
            </div>
            <div class="picker-footer footer-hook"></div>
        </div>
    </div>
    <script language="javascript">
        $(function () {
            $('.jui_public_btn').click(function () {
                var region = $('#sel_city').html();
                if (region.trim() == '' || region.trim() == '请选择地区') {
                    layer.msg('请选择地区'); return;
                }
                var m_name = $('#m_name').val();
                if (m_name.trim() == '') {
                    layer.msg('请填写真实姓名'); return;
                }
                var m_weixin = $('#m_weixin').val();
                if (m_weixin.trim() == '') {
                    layer.msg('请填写微信号'); return;
                }
                var m_infos = $('#m_infos').val();
                if (m_infos.trim() == '') {
                    layer.msg('请选择个人说明'); return;
                }
                var xxx = new FormData(document.querySelector("form"));
                xxx.append("m_region", region.trim());
                $.ajax('/index/user/setting', {
                    method: 'POST', data: xxx, processData: false, contentType: false,
                    success: function (data) {
                        if (data.code == 1) {
                            layer.msg(data.msg, { icon: 1, time: 1000 }, function () {
                                if (data.msg == '修改成功') {
                                    window.location.href = '/index/user/index';
                                } else {
                                    window.location.href = '?m=user&c=wlogs';
                                }
                            });
                        } else {
                            layer.msg(data.msg);
                        }
                    }, dataType: 'json'
                });
            });
        });
    </script>

</body>

</html>